<template>
  <div class="dashboard-container">
    <p style="font-size: larger">报表中心</p>
    <el-divider></el-divider>
    <el-tabs v-model="activeName" @tab-click="handleClick" tab-position="top">
      <el-tab-pane :lazy="true" label="柱状图" name="first">
        <histogram></histogram>
      </el-tab-pane>
      <el-tab-pane :lazy="true" label="饼图" name="second">
        <line-chart></line-chart>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

  import Histogram from '@/views/proDetails/chartManagement/histogram/index'
  import LineChart from '@/views/proDetails/chartManagement/pieChart/index'
  export default {
    name: 'chartManagement',
    components: { LineChart, Histogram },
    data(){
      return{
        activeName: 'first',
      }
    },
    methods:{
      //切换图形形状的方法
      handleClick(){

      },
    }
  }
</script>

<style scoped>

</style>
